package com.learning.spring.ioc.bean.jbased;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: AppInjectionConfig
 * Description:
 * Date: 2018/8/7 10:46 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Configuration
public class AppInjectionConfig {

    @Bean
    public ConfigInjectionBean configInjectionBean() {
        return new ConfigInjectionBean();
    }
}

class ConfigInjectionBean {
    public void injection() {
        System.out.println("调用了 ConfigInjectionBean.injection 方法");
    }
}
